import './assets/css/main.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import {createApp} from 'vue'
import {createPinia} from 'pinia'
// import {viewportIntersection} from  '@/utils/viewport/index'
import App from './App.vue'
import router from './router'
//导入插件
import lazyImg from "@/pluginUnit/lazyImg";

const app = createApp(App)
//引入iconfont
import '@/assets/font/font_4174006_ro6tqrvowy/iconfont.css'
import '@/assets/font/font_4174006_ro6tqrvowy/iconfont.js'
import 'element-plus/dist/index.css'
import '@/assets/css/loading.css'

const pinia = createPinia()
//注册持久化存储
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
//注册插件
app.use(lazyImg)
// app.use(viewportIntersection)


app.mount('#app')
